package edu.hitsz.prop;

import edu.hitsz.aircraft.HeroAircraft;
import edu.hitsz.application.Explode;

import java.util.List;

/**
 * 加血道具
 */
public class BloodProp extends AbstractProp{
    //增加的血量
    private int increase = 10;

    public BloodProp(int locationX, int locationY, int speedX, int speedY) {
        super(locationX, locationY, speedX, speedY);
    }

    @Override
    public void effect(HeroAircraft heroAircraft, List<Explode> explodes) {
        heroAircraft.increaseHp(increase);
    }
}
